/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.synchronization.remote.entities;

import java.io.Serializable;

/**
 *
 * @author jmj
 */
public abstract class Remote implements Serializable {

    protected  Integer id;
    protected  Integer remoteId;

    public Remote() {
        super();
    }

    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return the remoteId
     */
    public Integer getRemoteId() {
        return remoteId;
    }

    /**
     * @param remoteId the remoteId to set
     */
    public void setRemoteId(Integer remoteId) {
        this.remoteId = remoteId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Remote other = (Remote) obj;
        if (this.remoteId != other.remoteId && (this.remoteId == null || !this.remoteId.equals(other.remoteId))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 97 * hash + (this.remoteId != null ? this.remoteId.hashCode() : 0);
        return hash;
    }
}
